package utils;

import com.mchange.v2.c3p0.ComboPooledDataSource;
import org.springframework.jdbc.core.JdbcTemplate;

import javax.sql.CommonDataSource;

public class JdbcUtils {
    private static ComboPooledDataSource ds = new ComboPooledDataSource();

    public static JdbcTemplate getJdbcTemplate() {
        JdbcTemplate template = new JdbcTemplate(ds);
        return template;
    }
}
